// initial state
const state = {
    rightMenu: {
        status: "none",
        top: "0px",
        left: "0px",
        list: []
      }
  }
   
  // getters
  const getters = {}
   
  // actions
  const actions = {}
   
  // mutations
  const mutations = {
  // 更新右键菜单数据
updateRightMenuStatus(state, menuObj) {
    state.rightMenu.status = menuObj.status;
    state.rightMenu.top = menuObj.top;
    state.rightMenu.left = menuObj.left;
    state.rightMenu.list = menuObj.list;
  }
  }
   
  export default {
    namespaced: true,
    state,
    getters,
    actions,
    mutations
  }